﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ExcelUtil.Entity
{
    public class ExcelData : INotifyPropertyChanged
    {
        public string SheetName { get; set; }
        public int endCol { get; set; }//数据区域结束列的index
        public int endRow { get; set; }//数据区域结束行的index
        public event PropertyChangedEventHandler PropertyChanged;
        private string filePath;
        public string FilePath
        {
            get { return filePath; }
            set
            {
                filePath = value;
                if (this.PropertyChanged != null)
                {
                    this.PropertyChanged.Invoke(this, new PropertyChangedEventArgs("FilePath"));//当Name的属性值发生改变时，PropertyChanged事件触发
                }
            }
        }
        private string generatePath;
        public string GeneratePath
        {
            get { return generatePath; }
            set
            {
                generatePath = value;
                if (this.PropertyChanged != null)
                {
                    this.PropertyChanged.Invoke(this, new PropertyChangedEventArgs("GeneratePath"));//当Name的属性值发生改变时，PropertyChanged事件触发
                }
            }
        }


    }
}
